#ifndef _CENTITY_H_
#define _CENTITY_H_

#include <vector>
#include "CAnimation.h"
#include "CSurface.h"

class CEntity
{
public:
	static std::vector<CEntity*> EntityList;
protected:
	CAnimation		Anim_Control;
	SDL_Surface*	Surf_Entity;
public:
	int				X;
	int				Y;

	int				Width;
	int				Height;
	int				AnimState;

	CEntity();
	virtual ~CEntity();

	virtual bool OnLoad(char* File,int Width,int Height,int MaxFrames);
	virtual void OnLoop();
	virtual void OnRender(SDL_Surface* Surf_Display);
	virtual void OnCleanup();
};


#endif